import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import RouteConfig from './router/index';

//引入Redux
import { Provider } from 'react-redux';
import Store from './redux/store';

class App extends React.Component {

    render() {

        return (

            <Provider store={Store}>

                {RouteConfig}

            </Provider>

        )
    }
}

// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));